of

open fun of(code: String, region: String): Language

Creates a new Language with the given code and region.

This method does not check that the constructed Language is a valid language that can be used for spell checking.

Return

a Language with the given code and region.

Parameters

code

the language code

region

the region

Throws

when the given code or region is empty or blank


open fun of(code: String): Language

Returns a Language with the given code.

Return

a Language with the given code

Parameters

code

the language code